﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Trans.order
{
    public partial class Detail_order : Form
    {
        int id=0;
        public int Id 
        {
            get{
                return this.id;
            }
            set{
                this.id = value;
            }
        }
        public Detail_order()
        {
            InitializeComponent();
        }

        private void Detail_order_Load(object sender, EventArgs e)
        {
            if(this.id==0)
            {
                this.Close();
                return;
            }
            this.vw_orderTableAdapter1.FillById(this.DataSet_view.vw_order, id);
            this.tb_goodsTableAdapter.FillByOrderId(dataSet.tb_goods, id);            
        }

        private void goods_gridview_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e)
        {
            session.Color_Const.set_gv_color(goods_gridview);
        }
    }
}
